﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Text;
using Radovici.SharedLibrary;

namespace RadoviciDemo
{
    public partial class DragAndDrop : UserControl
    {
        public DragAndDrop()
        {
            InitializeComponent();
            DataContext = new DragAndDropModel();
        }
    }

    public class DragAndDropModel : Notifiable
    {
        private string _input = "Drop me!";
        private string _output = string.Empty;

        public void Add(string text)
        {
            _output += text;
            Notify("Output");
        }

        public string Input
        {
            get { return _input; }
            set { _input = value; Notify("Input"); }
        }

        public string Output
        {
            get { return _output; }
        }
    }
}
